﻿using System;
using System.Web.Services.Protocols;

namespace BizElements.BusinessLayer
{
    /// <summary>Writes log entry via classic (ASMX) web service.</summary>
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name = "WsMethodReceiverSoap", Namespace = "http://ElementsFx/BizElements.Services/WsLogReceiver/")]
    internal class WsLogSender : SoapHttpClientProtocol, ILogSender
    {
        #region WriteLogEntry.

        /// <summary>Writes log entry via classic (ASMX) web service.</summary>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://ElementsFx/BizElements.Services/WsLogReceiver/WriteLogEntry",
             RequestNamespace = "http://ElementsFx/BizElements.Services/WsLogReceiver/",
             ResponseNamespace = "http://ElementsFx/BizElements.Services/WsLogReceiver/",
            Use = System.Web.Services.Description.SoapBindingUse.Literal,
            ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public void WriteLogEntry([System.Xml.Serialization.XmlElementAttribute(DataType = "base64Binary")] byte[] serializedLogEntry)
        {
            this.Invoke("WriteLogEntry", new object[] { serializedLogEntry });
        }

        #endregion
    }
}